home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS12.ADF
/
PopCLI
/
PopCLI.DOC
< prev
next >
Wrap
Text File
|
1986-08-05
|
5KB
|
85 lines
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* |_o_o|\\ Copyright (c) 1986 The Software Distillery. All Rights Reserved */
/* |. o.| || This program may not be distributed without the permission of */
/* | . | || the authors. */
/* | o | || Dave Baker Ed Burnette Stan Chow Jay Denebeim */
/* | . |// Gordon Keener Jack Rouse John Toebes Doug Walker */
/* ====== BBS:(919)-471-6436 VOICE:(919)-469-4210 */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
POPCLI by John Toebes ⌐ 1986 The Software Distillery. All Rights Reserved
235 Trillingham Ln, Cary, NC 27511
Permission is hereby granted to distribute this program provided both this
documentation accompanies the executable and that no charge is made for its
distribution.
POPCLI is designed to solve two problems at once. First it provides a simple
way of starting another CLI at any time without having to load workbench or
exit whatever program you may be using. Second it has a builtin screen saver
mode that automatically turns off the Amiga display when there has been no
input for a given period of time.
Once POPCLI is running, you can use it to get a new CLI from whatever program
you are running by pressing Left Amiga and ESC at the same time. What this
does is to bring the workbench screen to the front and then start up a new
CLI window on the workbench screen. This is extremely handy when you start
a program from CLI and then find you need to do a CLI command.
The other function that POPCLI performs is to blank the screen for you. This
saves on the wear of the monitor phospher. It will do this for you
automatically any time that you have not pressed any key or moved the mouse
for a given period of time regardless of what has been written to the screen.
This is useful when you leave the Amiga on unattended so that you don't have
to mess with the brightness control or worse yet tunr the monitor off putting
wear and tear on its power supply. Furthermore it only takes a touch of the
mouse or any key on the keyboard to bring it all back.
To use POPCLI, you need to execute the command:
RUN POPCLI <seconds> <command>
Where <seconds> is any number of seconds after which the screen saver is to
go into effect. If nothing is specified it defaults to turning off the
screen after 120 seconds. (Two minutes) Note that it makes its decision to
shut blank the screen solely upon the absence of any keyboard, gameport, or
mouse input. Even if a program is printing to the screen it will shut down.
This is not a problem, to unblank the screen merely move the mouse or touch any
key (SHIFT or CTRL are excellent choices since they don't do anything).
<command> is the command to be executed when the Left Amiga and ESC keys are
pressed simaultaneously. By default the command is
NEWCLI >NIL:
to bring up a CLI window in the center of the screen. Note the >NIL: on the
command to supress any output that the NEWCLI program may give. This is
important because at the time the command is executed, the original window
may be long gone. If you wish to have a CLI come up elsewhere on the screen
you can put the window definition in the command such as:
NEWCLI >NIL: CON:0/0/640/200/MYCLI
Which will open a CLI to fill the entire screen. POPCLI does no parsing on
the command, merely passing the ENTIRE string without any processing to
AmigaDOS.
If you wish to specify a command with POPCLI you must include the seconds
value followed by one or more spaces. Some valid commands are:
RUN POPCLI 200
RUN POPCLI 200 NEWCLI >NIL: CON:0/0/640/100/MYWINDOW
RUN POPCLI 10
RUN POPCLI 180 NEWCLI >NUL: CON:0/10/640/120/POPUP
To install a copy of POPCLI on your workbench, put a copy of POPCLI in your
C directory and edit the Startup-Sequence file in the S directory to add
a RUN POPCLI command of your own taste.
Notes:
1) Once POPCLI is installed, the only way to get rid of it is to reboot.
2) POPCLI blanks the screen by creating a one bit-blane lo-res screen in front
of all other screens and setting the background color to solid black. It
then turns off the display freeing the cycles for any program that might
be running.
3) Once the screen blanks, if the AMIGA is left undisturbed for 68.096 years
the screen may briefly flash back on for the next 68.096 years. I have not
taken the time to test this. If this turns out to be a problem, please
let me know.
4) As with all RUN commands, the original CLI window may refuse to go away
despite typing in an ENDCLI.